<%= form_for(@user_collection) do |f| %>
  <% if @user_collection.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@user_collection.errors.count, "error") %> prohibited this user_collection from being saved:</h2>

      <ul>
      <% @user_collection.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>
	<%= flash[:notice].to_s %>
  <div class="field">
    <%= f.label :collection %><br />
    <%= select("collection", "collection_id", Collection.all.collect {|c| [ c.title, c.id ] }, {:prompt => 'Select a collection'}) %>
  </div>
  <div class="actions">
    <input name="commit" type="submit" value="Add collection" />
  </div>
<% end %>
